// 统一管理项目接口的模块
// 引入二次封装的axios（带有请求、响应的拦截器）
import requests from './request.js'

// 调用接口
export const reqgetCategoryList = () => requests.get('/product/getBaseCategoryList')
// 判断用户是否登入 /api/login   POST
export const checkUser = (loginForm) =>
  requests({ url: '/login', method: 'post', data: loginForm })
// 物品发布页搜索数据
export const searchGoodList = (keyWord) =>
  requests({ url: `/goodsShow?keyWord=${keyWord}`, method: 'get' })
// *获取物品总数*
export const totalNumGoods = () =>
  requests({ url: '/totalNumGoodsList', method: 'get' })
